# Contributor: knuxify <knuxify@gmail.com>
# Maintainer:
pkgname=xfce4-weather-plugin
pkgver=0.11.2
pkgrel=1
pkgdesc="Weather plugin for the Xfce desktop environment"
url="https://docs.xfce.org/panel-plugins/xfce4-weather-plugin"
arch="all"
license="GPL-2.0-or-later"
makedepends="xfce4-panel-dev libxfce4ui-dev libsoup-dev libxml2-dev json-c-dev upower-dev"
subpackages="$pkgname-lang"
source="https://archive.xfce.org/src/panel-plugins/xfce4-weather-plugin/${pkgver%.*}/xfce4-weather-plugin-$pkgver.tar.bz2"

build() {
	export GEONAMES_USERNAME=rzjRsXj7it8epAV
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
011868165b17501a8b5aacb0387c23be635a1f4037a49501a823cf4aeb2be77d40aad51a4f1d1ccb1057b49e82d4cce2b2cffb82d165cf695340fbab99665ae2  xfce4-weather-plugin-0.11.2.tar.bz2
"
